import { createApp } from 'vue'
import './style.css'
// @ts-ignore
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router/index'
import * as ElementPlusIcons from '@element-plus/icons-vue'
import { toLine } from "./utils/index"
import yUI from './components'
// @ts-ignore
// import yUI from '../lib/index.js'
import '../lib/style.css'
import './mock'


const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIcons)) {
    app.component(`el-icon-${toLine(key)}`, component)
}

app.use(router)
    .use(ElementPlus)
    .use(yUI)
app.mount('#app')
